import request from '@/utils/request'
// 单船查询API
export function getSingleCarShip(ShipID) {
  return request({
    url: `/system/CarShip/singleCarShip/${ShipID}`,
    method: 'get'
  })
}
// 查询车船调度列表
export function listCarShip(query) {
  return request({
    url: '/system/CarShip/list',
    method: 'get',
    params: query
  })
}

// 查询车船调度详细
export function getCarShip(id) {
  return request({
    url: '/system/CarShip/' + id,
    method: 'get'
  })
}

// 新增车船调度
export function addCarShip(data) {
  return request({
    url: '/system/CarShip',
    method: 'post',
    data: data
  })
}

// 修改车船调度
export function updateCarShip(data) {
  return request({
    url: '/system/CarShip',
    method: 'put',
    data: data
  })
}

// 删除车船调度
export function delCarShip(id) {
  return request({
    url: '/system/CarShip/' + id,
    method: 'delete'
  })
}
